home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib6
/
v_08_08
/
8n08123b
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
335 b
|
20 lines
#include <stdio.h>
#include <math.h>
#include <ctype.h>
void main()
{
double x,y ;
for ( x = 1.0; x <= 25.0; (x = x + 1.0) )
{
y = sqrt(x) * sqrt(x);
if (y != x)
printf("%5.1f %21.17f %10.2e\n", x, y, x-y);
}
}
LISTING 4